import sys

from spd.cmds import new

HELP_INFO = """
无敌的安卓逆向框架，马上与你见面。作者开发中...
"""


def default(tip=None):
    print('{}{}'.format(HELP_INFO.strip(), '\n提示：{}'.format(tip) if tip else ''))


def main():
    args = sys.argv
    if len(args) < 2:
        default()
        return

    cmd = args.pop(1)
    if cmd == "new":
        new.main()
    else:
        default("please use  ==>  spd new -p <project_name>")


if __name__ == '__main__':
    main()
